<div id="new-idea">
  <h2>Edit <%= resource_name.to_s.humanize %></h2>

  <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name),:html => {:id => "add-form", :method => "post"}) do |f| %>
    <% if resource.errors.any? %>
      <div class="message error_message">
        <h2><%= pluralize(resource.errors.count, "error") %> prohibited this idea from being saved:</h2>

        <ul>
        <% resource.errors.full_messages.each do |msg| %>
          <li><%= msg %></li>
        <% end %>
        </ul>
      </div>
    <% end %>
    <div class="inputs">
      <p>
        <%= f.label :email %>
        <%= f.text_field :email, :autofocus => true %>
      </p>
      <p>
        <%= f.label :password %>
        <%= f.password_field :password %>
        
      </p>
      <p>
        <%= f.label :password_confirmation %>
        <%= f.password_field :password_confirmation%>
      </p>
    </div>

    <div class="actions">
      <%= f.submit "Update" %>
    </div>
  <% end %>

  <h3>Cancel my account</h3>

  <p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.</p>

  <%= link_to "Back", :back %>
</div>


